﻿using System;

namespace TopBuilds.Restaurant.Data
{
    public class PrintTemplText
    {
        #region 属性
        private int _id;
        private int _templateId;
        private string _font;
        private int _fontSize;
        private int _x;
        private int _y;
        private string  _text;
        private int _width;
        private int _height;
        private int _textType;
        private int _portion;
        #endregion

        #region 构造
        public PrintTemplText()
        {
            _templateId         = 0;
            _font               = null;
            _fontSize           = 0;
            _x                  = 0;
            _y                  = 0;
            _text               = null;
            _width              = 0;
            _height             = 0;
            _textType           = 0;
            _portion            = 0;
        }

        public PrintTemplText(int templateId)
        {
            _templateId         = templateId;
            _font               = null;
            _fontSize           = 0;
            _x                  = 0;
            _y                  = 0;
            _text               = null;
            _width              = 0;
            _height             = 0;
            _textType           = 0;
            _portion            = 0;
        }

        public PrintTemplText(int templateId, string font)
        {
            _templateId        = templateId;
            _font              = font;
            _fontSize          = 0;
            _x                 = 0;
            _y                 = 0;
            _text              = null;
            _width             = 0;
            _height            = 0;
            _textType          = 0;
            _portion           = 0;
        }

        public PrintTemplText(int templateId, string font, int fontSize)
        {
            _templateId        = templateId;
            _font              = font;
            _fontSize          = fontSize;
            _x                 = 0;
            _y                 = 0;
            _text              = null;
            _width             = 0;
            _height            = 0;
            _textType          = 0;
            _portion           = 0;
        }

        public PrintTemplText(int templateId, string font, int fontSize,int x)
        {
            _templateId        = templateId;
            _font              = font;
            _fontSize          = fontSize;
            _x                 = x;
            _y                 = 0;
            _text              = null;
            _width             = 0;
            _height            = 0;
            _textType          = 0;
            _portion           = 0;
        }

        public PrintTemplText(int templateId, string font, int fontSize, int x,int y)
        {
            _templateId        = templateId;
            _font              = font;
            _fontSize          = fontSize;
            _x                 = x;
            _y                 = y;
            _text              = null;
            _width             = 0;
            _height            = 0;
            _textType          = 0;
            _portion           = 0;
        }

        public PrintTemplText(int templateId, string font, int fontSize, int x, int y, string text)
        {
            _templateId        = templateId;
            _font              = font;
            _fontSize          = fontSize;
            _x                 = x;
            _y                 = y;
            _text              = text;
            _width             = 0;
            _height            = 0;
            _textType          = 0;
            _portion           = 0;
        }

        public PrintTemplText(int templateId, string font, int fontSize, int x, int y, string text, int width)
        {
            _templateId        = templateId;
            _font              = font;
            _fontSize          = fontSize;
            _x                 = x;
            _y                 = y;
            _text              = text;
            _width             = width;
            _height            = 0;
            _textType          = 0;
            _portion           = 0;
        }

        public PrintTemplText(int templateId, string font, int fontSize, int x, int y, string text, int width, int height)
        {
            _templateId        = templateId;
            _font              = font;
            _fontSize          = fontSize;
            _x                 = x;
            _y                 = y;
            _text              = text;
            _width             = width;
            _height            = height;
            _textType          = 0;
            _portion           = 0;
        }

        public PrintTemplText(int templateId, string font, int fontSize, int x, int y, string text, int width, int height, int textType)
        {
            _templateId        = templateId;
            _font              = font;
            _fontSize          = fontSize;
            _x                 = x;
            _y                 = y;
            _text              = text;
            _width             = width;
            _height            = height;
            _textType          = textType;
            _portion           = 0;
        }

        public PrintTemplText(int templateId, string font, int fontSize, int x, int y, string text, int width, int height, int textType, int portion)
        {
            _templateId        = templateId;
            _font              = font;
            _fontSize          = fontSize;
            _x                 = x;
            _y                 = y;
            _text              = text;
            _width             = width;
            _height            = height;
            _textType          = textType;
            _portion           = portion;
        }
        #endregion

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int TemplateId
        {
            get { return _templateId; }
            set { _templateId = value; }
        }

        public string Font
        {
            get { return _font; }
            set { _font = value; }
        }

        public int FontSize
        {
            get { return _fontSize; }
            set { _fontSize = value; }
        }

        public int X
        {
            get { return _x; }
            set { _x = value; }
        }

        public int Y
        {
            get { return _y; }
            set { _y = value; }
        }

        public string Text
        {
            get { return _text; }
            set { _text = value; }
        }

        public int Width
        {
            get { return _width; }
            set { _width = value; }
        }

        public int Height
        {
            get { return _height; }
            set { _height = value; }
        }

        public int TextType
        {
            get { return _textType; }
            set { _textType = value; }
        }

        public int Portion
        {
            get { return _portion; }
            set { _portion = value; }
        }
    }
}
